package com.stud.system.service;

import com.stud.common.mybatis.BaseService;
import com.stud.system.domain.WorkflowTask;

import java.util.List;

/**
 * 流程实例任务Service接口
 *
 * @author Stud
 * @date 2023-03-06
 */
public interface WorkflowTaskService extends BaseService<WorkflowTask> {
    List<WorkflowTask> listByWorkflowId(Long workflowId);

    WorkflowTask firstTask(Long workflowId, String... taskType);

    WorkflowTask lastTask(Long workflowId);

    WorkflowTask mainTask(Long workflowId);

    WorkflowTask prevTask(WorkflowTask workflowTask);

    WorkflowTask nextTask(WorkflowTask workflowTask);
}
